/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$(document).ready(function ()
{
    $("#owner").val("");
    $("#title").val("");
        
    $("#owner").change( function() 
    {
        if ($('#owner').val()!= "")
        {
            $("#title").attr("disabled",true);
        }
        else if ($('#title').val() != "")
        {
             $("#owner").attr("disabled",true);
        }
        else if ($('#owner').val(""))
        {
             $("#title").attr("disabled",false);
        }
    });
    
    $("#title").change( function() 
    {
        if ($('#owner').val() != "")
        {
            $("#title").attr("disabled",true);
        }
        else if ($('#title').val() != "")
        {
             $("#owner").attr("disabled",true);
        }
        else if ($('#title').val(""))
        {
             $("#owner").attr("disabled",false);
        }
    });
});  
